//
//  OutpatientTableViewCell.m
//  HarmonizePub
//
//  Created by Haven on 16/10/9.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import "OutpatientTableViewCell.h"
#import "Config.h"
@interface OutpatientTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *title;

@property (weak, nonatomic) IBOutlet UILabel *detail;
@property (weak, nonatomic) IBOutlet UIButton *button;

@property (nonatomic, strong) UIButton *tempBtn;

@property (nonatomic, assign) BOOL BtnY;
@end


@implementation OutpatientTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];

}




+ (NSString *)registerName {
    return @"OutpatientTableViewCell";
}

- (void)setIsSelected:(BOOL)isSelected
{
    _isSelected = isSelected;
    if (isSelected) {
        [self.button setImage:[UIImage imageNamed:@"打钩2"] forState:UIControlStateNormal];
    }else{
        [self.button setImage:[UIImage imageNamed:@"打钩"] forState:UIControlStateNormal];
    }
    
}


- (void)setDict:(NSDictionary *)dict
{
    _dict = dict;
    self.title.text = dict[@"title"];
    self.detail.text = dict[@"detail"];
    self.iconView.image = [UIImage imageNamed:dict[@"image"]];
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
